package com.sample.core.events
{
	import flash.events.Event;

	public class NavigationEvent extends Event
	{
 		public static const NAVIGATE:String = "navigate";
        public static const RESTORE_PAGE:String = "restorePage";
        public static const RELOAD:String = "reload";
        
        public var page:String;
        public var params:Object;
        
        public function NavigationEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
        {
            super(type, bubbles, cancelable);
        }
        
        public static function create(page:String, params:Object=null):NavigationEvent
        {
            var ne:NavigationEvent = new NavigationEvent(NavigationEvent.NAVIGATE, true);
            ne.page = page;
            ne.params = params;
            return ne;
        }
        
	}
}